# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=certbot-nginx
pkgver=1.29.0
pkgrel=0
pkgdesc="Nginx plugin for Certbot client"
url="https://pypi.org/project/certbot-nginx/"
arch="noarch"
license="Apache-2.0"
depends="certbot py3-acme py3-mock py3-openssl py3-parsing
	py3-setuptools py3-pip py3-zope-interface"
checkdepends="py3-pytest"
source="https://pypi.io/packages/source/c/certbot-nginx/certbot-nginx-$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
baa532953946cdbaf46609f23d9f10f223f238089a552fedb6fa8390362bcaf1bf1cd379bd9199df0ab25d38fa4050fc9172e44380ae7076dadd0a288a2ea474  certbot-nginx-1.29.0.tar.gz
"
